def q(filename):
    file = open(filename, 'r')
    data = file.readlines()
    return data
a1 = q('a1_sorted.txt')
a2 = q('a2_reverse.txt')
a3 = q('a3_shuffle.txt')
import time
t_start = time.time()
def bubsort(nums):
    swapped = True
while swapped:
    swapped = False
    for i in range(len(nums) - 1):
            if nums[i] > nums[i + 1]:
                nums[i], nums[i + 1] = nums[i + 1], nums[i]
                swapped = True
t_finish = time.time()
print('Время', round((t_finish-t_start)*1000))
